﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PSystem
{
    class IsUnCode
    {/*
        public void AddVar(string Command, List<string> varnamel, List<string> varvaluel)
        {
            rename(Command, varnamel, varvaluel);
            revalue(Command, varvaluel);
        }

        private unsafe void rename(string Command, List<string> varnamel, List<string> varvaluel)
        {
            System.Text.RegularExpressions.Regex varname = new System.Text.RegularExpressions.Regex(@"--[a-zA-Z0-9-_]+--");
            string varnamev = varname.Match(Command).Value;
            List<string*> varnp = (List<string*>) & varvaluel;
            foreach (string n in varnamel)
            {
                if (varnamev == n)
                {
                    IsAgainVarName = true;
                }
                else
                {
                    &varnp.Add(varnamev);
                }
                index++;
            }
        }
        private unsafe void revalue(string Command, List<string> varvaluel)
        {
            System.Text.RegularExpressions.Regex value = new System.Text.RegularExpressions.Regex(@"(,[\w\d]+)?");
            string varvaluev = value.Match(Command).Value.Replace(",", "");
            List<string*> varvp = (List<string*>) & varvaluel;
            if (IsAgainVarName == true)
            {
                varvp[index] = varvaluev;
            }
            else
            {
                varvp.Add(varvaluev);
            }
        }*/
    }
}
